package com.tpp.baseConsumer.controller;

import com.tpp.baseConsumer.service.AreaService;
import com.tpp.comm.pojo.TpArea;
import com.tpp.comm.vo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class AreaController {

    @Resource
    private AreaService areaService;


    @GetMapping("/p/queryCityList")
    public Result queryCityList(){
        List<TpArea> tpAreas = areaService.queryCityList();
        return Result.success(tpAreas);
    }

}
